#!coding:utf-8
# vim: tabstop=4 shiftwidth=4 softtabstop=4
"""
    @author jay.han
"""
import unittest
from cvirt.common import config
conf = config.setup_logging()


from django.test import TestCase

class BaseTest(unittest.TestCase):

    def setUp(self):
        super(BaseTest, self).setUp()
        self.conf = conf



    def tearDown(self):
        from cvirt.manager.models import Base

        for k, v in self.__dict__.items():
            if v is not None and issubclass(type(v), Base):
                v.delete()


class BaseTaskTest(TestCase):

    def setUp(self):
        super(BaseTaskTest, self).setUp()
        self.host = '127.0.0.1'


    def tearDown(self):
        pass